//
//  WKSystemPermissionsManager.h
//  ourToken
//
//  Created by wakeup on 2018/6/20.
//  Copyright © 2018年 ourtoken. All rights reserved.
//

#import <Foundation/Foundation.h>

/**
 扫描器类型
 - WKScannerTypeQRCode: 仅支持二维码
 - WKScannerTypeBarCode: 仅支持条码
 - WKScannerTypeBoth: 支持二维码以及条码
 */
typedef NS_ENUM(NSInteger, WKScannerType) {
    WKScannerTypeQRCode,
    WKScannerTypeBarCode,
    WKScannerTypeBoth,
};

@interface WKSystemPermissionsManager : NSObject

/**
 校验是否有相机权限
 @param permissionGranted 获取相机权限回调
 */
+ (void)checkCameraAuthorizationStatusWithGrand:(void(^)(BOOL granted))permissionGranted;

/**
 设置支持编码格式
 @param scannerType 扫描器类型
 */
+ (NSArray *)metadataObjectTypesWithType:(WKScannerType)scannerType;

@end
